<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="viewport"
	content="width=device-width, initial-scale=1,maximum-scale=1, user-scalable=no">
<title>组织机构管理</title>
<link href="<%=basePath%>bootstrap-3.3.5-dist/css/bootstrap.min.css"
	title="" rel="stylesheet" />

<link title="" href="<%=basePath%>css/style.css" rel="stylesheet"
	type="text/css" />

<link title="blue" href="<%=basePath%>css/dermadefault.css"
	rel="stylesheet" type="text/css" />
<%-- <link title="green" href="<%=basePath%>css/dermagreen.css" rel="stylesheet" type="text/css" disabled="disabled"/>
<link title="orange" href="<%=basePath%>css/dermaorange.css" rel="stylesheet" type="text/css" disabled="disabled"/> --%>
<link href="<%=basePath%>css/templatecss.css" rel="stylesheet" title=""
	type="text/css" />


<script src="<%=basePath%>js/jquery.js" type="text/javascript"></script>
<script src="<%=basePath%>js/jquery.cookie.js" type="text/javascript"></script>
<script src="<%=basePath%>bootstrap-3.3.5-dist/js/bootstrap.min.js"
	type="text/javascript"></script>
<script src="<%=basePath%>js/system/syorg.js" type="text/javascript"></script>
<SCRIPT language=javascript
	src="<%=basePath%>js/jquery.ztree.all.min.js"></SCRIPT>
<SCRIPT language=javascript src="<%=basePath%>js/common.js"></SCRIPT>
<link rel="stylesheet"
	href="<%=basePath%>ztree/css/css/zTreeStyle/zTreeStyle.css"
	type="text/css">

</head>

<body>
	<div>
		<div id="authority" style="width: auto" align="left">
			<ul id="syorgztree" class="ztree"></ul>
		</div>
	</div>
	
	<!-- 修改框 -->
	<div class="modal fade" id="myModal-update-info" tabindex="-1" role="dialog"
                 aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close"
                                    data-dismiss="modal" aria-hidden="true">
                                &times;
                            </button>
                            <h4 class="modal-title" id="myModalLabel">
                            修改
                            </h4>
                        </div>
                        <form class="form-horizontal" role="form" action="" method="post"  id="category_update">
                            <div class="modal-body">
                                <div class="form-group">
                                    <div class="col-sm-9">
                                        <input type="hidden"  class="form-control" id="treeNodeId"  name="treeNode" style="width: 250px" maxlength="15"  />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-9">
                                        <input type="text"   class=" sortNumber form-control"  name="treenodename" id="treeNodeName" style="width: 250px" maxlength="15"/>
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-9">
                                        <input type="hidden"  class="form-control" id="treeNodePid"  name="treeNodepid" style="width: 250px" maxlength="15"  />
                                    </div>
                                </div>
                                <div class="form-group">
                                    <div class="col-sm-9">
                                        <input type="hidden"  class="form-control" id="treeNodeSrc"  name="treeNodesrc" style="width: 250px" maxlength="15"  />
                                    </div>
                                </div>
                           
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default"
                                        data-dismiss="modal">关闭
                                </button>
                                <button type="button" class="btn btn-primary" id="btnsubmit" onclick="updatesyorgtj()">提交
                                </button>
                            </div>
                        </form>
                    </div><!-- /.modal-content -->
                </div>
            </div>
            
           <!-- 删除确认框 --> 
            <div class="modal fade" id="deleteOneModal" tabindex="-1"
			role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
			<!-- data-backdrop="static" 禁止点击弹框后面内容 -->
			<form class="form-horizontal" role="form">
				<div class="modal-dialog modal-sm ">
					<!-- modal-sm 小的  modal-lg 大的 -->
					<div class="modal-content">
						<div class="modal-header">
							<button type="button" class="close" data-dismiss="modal"
								aria-hidden="true">&times;</button>
							<h4 class="modal-title" id="myModalLabel">提示信息</h4>
						</div>
						<div class="modal-body" style="text-align: left;">
							<h5>您确定要删除当前信息吗？</h5>
							<input type="text" id="syorgId" style="display: none" />
						</div>
						<div class="modal-footer">

							<!-- <button type="button" class="btn btn-default"
								data-dismiss="modal" onclick>取消</button>
 -->
							<button type="button" class="btn btn-primary"
								onclick="deletesyorgtj()">确认</button>
						</div>
					</div>
					<!-- /.modal-content -->
				</div>
			</form>
		</div>
		
		<!-- 新增 -->
		<div class="modal fade" id="myModal-add-info" tabindex="-1" role="dialog"
                 aria-labelledby="myModalLabel" aria-hidden="true">
                <div class="modal-dialog">
                    <div class="modal-content">
                        <div class="modal-header">
                            <button type="button" class="close"
                                    data-dismiss="modal" aria-hidden="true">
                                &times;
                            </button>
                            <h4 class="modal-title" id="myModalLabel">
                                新 增
                            </h4>
                        </div>
                        <form class="form-horizontal" role="form" action="" method="post"  id="category_add">
                            <div class="modal-body">
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >酒名： </label>

                                    <div class="col-sm-9">
                                        <input type="text"  class="form-control" id="nameid"  name="rolename" style="width: 250px" maxlength="15" placeholder="10个汉字以内" />

                                    </div>
                                </div>
                                <div class="form-group">
                                    <label class="col-sm-3 control-label no-padding-right" >描述： </label>

                                    <div class="col-sm-9">
                                        <input type="text"   class=" sortNumber form-control"  name="roledetail" id="orgdetailid" style="width: 250px" maxlength="30" />
                                    </div>
                                </div>
                                <div>
                                	<input type="hidden" id="id"/>
                                	<input type="hidden" id="seq"/> 
                                	<input type="hidden" id="pid"/>
                                	
                                </div>
                           
                            </div>
                            <div class="modal-footer">
                                <button type="button" class="btn btn-default"
                                        data-dismiss="modal" onclick="exit()">关闭
                                </button>
                                <button type="button" class="btn btn-primary" id="btnsubmit" onclick="insertsyorgtj()">提交
                                </button>
                            </div>
                        </form>
                    </div><!-- /.modal-content -->
                </div>
            </div>
</body>

</html>
